package cn.sciento.export.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.util.List;

import cn.sciento.export.annotation.ExcelColumn;
import cn.sciento.export.annotation.ExcelSheet;

public class ExportColumn implements Serializable {
    private static final long serialVersionUID = 1674840216339609700L;

    private Long id;

    private String title;

    private String name;

    private Long parentId;

    private int order;

    private String type;

    private String code;

    private List<ExportColumn> children;

    private Boolean enableAsync;

    private boolean checked;

    @JsonIgnore
    private boolean hasChildren;

    @JsonIgnore
    private transient ExcelSheet excelSheet;

    @JsonIgnore
    private transient ExcelColumn excelColumn;

    public ExportColumn() {
    }

    public ExportColumn(Long id, String title, String name, Long parentId) {
        this.id = id;
        this.title = title;
        this.name = name;
        this.parentId = parentId;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getParentId() {
        return this.parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public int getOrder() {
        return this.order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<ExportColumn> getChildren() {
        return this.children;
    }

    public void setChildren(List<ExportColumn> children) {
        this.children = children;
    }

    public boolean isChecked() {
        return this.checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean hasChildren() {
        return this.hasChildren;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }

    public Boolean getEnableAsync() {
        return this.enableAsync;
    }

    public void setEnableAsync(Boolean enableAsync) {
        this.enableAsync = enableAsync;
    }

    public ExcelSheet getExcelSheet() {
        return this.excelSheet;
    }

    public void setExcelSheet(ExcelSheet excelSheet) {
        this.excelSheet = excelSheet;
    }

    public ExcelColumn getExcelColumn() {
        return this.excelColumn;
    }

    public void setExcelColumn(ExcelColumn excelColumn) {
        this.excelColumn = excelColumn;
    }

    public String toString() {
        return "ExportColumn{id=" + this.id + ", title='" + this.title + '\'' + ", name='" + this.name + '\'' + ", parentId=" + this.parentId + ", order=" + this.order + ", type='" + this.type + '\'' + ", code='" + this.code + '\'' + ", children=" + this.children + ", enableAsync=" + this.enableAsync + ", checked=" + this.checked + ", hasChildren=" + this.hasChildren + ", excelSheet=" + this.excelSheet + ", excelColumn=" + this.excelColumn + '}';
    }
}
